package com.cqx.collectionMysql.enums;

public enum ResultEnum {
    SUCCESS(200,"操作成功"),
    ERROR(400,"系统错误"),
    NOT_LOGIN(401,"请登录"),
    NO_AUTHORITY(403,"没有操作权限"),
    LOGIN_ERROR(451,"登录错误"),
    LOGIN_CONTROL(452,"登录限制,请联系管理员"),
    PARAMETER_ERROR(453,"参数错误"),
    ;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private Integer code;
    private  String msg;

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
